//
//  CYSelCategaryView.h
//  cyydt
//
//  Created by chu on 2019/1/29.
//  Copyright © 2019 chu. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CYSelCategaryCollectionViewCell.h"
#import "CYCategrayModel.h"

NS_ASSUME_NONNULL_BEGIN

typedef void(^SelResultBlock)(CYCategrayModel *bigCateModel, CYCategrayModel *smallCateModel);
typedef void(^SelDuoXuanBlock)(NSArray *valueArr);

@interface CYSelCategaryView : UIView<UICollectionViewDelegate, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout>
{
    CYCategrayModel *_selBigCateModel;
    CYCategrayModel *_selSmallCateModel;
}
@property (weak, nonatomic) IBOutlet UICollectionView *collectionView;
@property (weak, nonatomic) IBOutlet UIButton *doneBtn;
@property (nonatomic, strong) NSArray *dataSourceArr;

@property (nonatomic, assign) BOOL singlOrMore;//单选或多选 默认单选NO
//如果是多选的话 不会跳转小分类
@property (nonatomic, assign) BOOL haveSmallCategary;//是否有小分类 默认没有NO
@property (nonatomic, copy) SelResultBlock block;
@property (nonatomic, copy) SelDuoXuanBlock duoxuanBlock;

@end

NS_ASSUME_NONNULL_END
